Release 10.1A: OpenEdge Data Management:
SQL Development
Working with indexes
An index is a database object used to speed the time in which data is retrieved from a table. Although OpenEdge creates an index for any column to which you assign a unique constraint, you can also explicitly create an index.
Using the CREATE INDEX statement
The
Note: For a complete description of theCREATE INDEXstatement creates an index on one or more columns of a table. You can specify an index in ascending order (ASC) or descending order (DESC).CREATE INDEXstatement, see OpenEdge Data Management: SQL Reference .The
CREATE INDEXstatement uses the following syntax:
The index in this
CREATE INDEXexample is specified on the single columnempno, and is of ascending order on the value of the column, as shown in Example 5–6.
DROP INDEX
Use the
DROP INDEXstatement to drop a table index. An index can only be dropped from tables with more than one index. The initial index of a table cannot be dropped. Example 5–7 demonstrates the use of aDROP INDEXstatement.
For information on the use of indexes, see Chapter 6, " OpenEdge SQL Data Manipulation Language."
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |